home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Collections: Scope
/
Scope Disk #157 (199x)(Scope PD)(US)[WB].zip
/
Scope Disk #157 (199x)(Scope PD)(US)[WB].adf
/
LockDevice
/
PreInclude.c
< prev
Wrap
C/C++ Source or Header
|
1990-10-25
|
962b
|
61 lines
#define __NO_PRAGMAS 1
#include <libraries/filehandler.h>
#include <libraries/dosextens.h>
#include <devices/trackdisk.h>
#include <libraries/arpbase.h>
#include <hardware/custom.h>
#include <exec/execbase.h>
#include <exec/memory.h>
#include <functions.h>
struct Patch
{
struct Patch *NextPatch;
struct IOExtTD *Request;
struct Device *Device;
VOID *OldBeginIO;
char UnitName[32];
UBYTE PassWord[32];
char DriverName[32];
};
struct LockSeg
{
struct MsgPort SignalPort;
struct Task *Father;
struct Task *Child;
ULONG HandShake;
BPTR HandlerSegment;
LONG SegSize;
struct Patch *RootPatch;
};
struct LockMsg
{
struct Message ExecMessage;
char *DeviceName;
char *PassWord;
BYTE Success;
};
extern struct ExecBase *SysBase;
extern struct DosLibrary *DOSBase;
#define PORTNAME "LockDevice"
#define SIG_SHAKE SIGBREAKF_CTRL_C
#define SIG_QUIT SIGBREAKF_CTRL_D
#define SIG_PORT SIGBREAKF_CTRL_E
#define REVISION 1